package com.zs.blog.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Title: CategorySearchDTO
 * @Author zs
 * @Package com.zs.blog.model.dto
 * @Date 2024/10/29 20:35
 * @description: 分类查询条件数据转换对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "分类查询条件数据转换对象")
public class CategorySearchDTO {
    @Schema(description = "分类名称")
    private String categoryName;
    @Schema(description = "创建时间-开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime startTime;
    @Schema(description = "创建时间-结束时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime endTime;
    @Schema(description = "是否删除[0:否，1:是]")
    private Integer isDeleted;
    @Schema(description = "页码数")
    private Integer pageNum;
    @Schema(description = "当前页所展示的数据数量")
    private Integer pageSize;
}
